//
//  ViewController.m
//  SheetList
//
//  Created by LYPC on 2017/7/25.
//  Copyright © 2017年 cattsoft. All rights reserved.
//

#import "ViewController.h"
#import "SheetView.h"

#define SCREEN ([[UIScreen mainScreen] bounds].size)
#define SCREEN_H SCREEN.height
#define SCREEN_W SCREEN.width

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *lTitles = @[@"地区", @"竞争力指数"];
    NSArray *lDatas = @[@[@"昆山市\n江苏-苏州", @"90.51"], @[@"昆山市\n江苏-苏州", @"4"], @[@"昆山市\n江苏-苏州", @"90.51"], @[@"昆山市\n江苏-苏州", @"90.51"], @[@"昆山市\n江苏-苏州", @"90.51"]];
    
    NSArray *rTitles = @[@"基础条件指数", @"运行绩效指数", @"发展条件指数", @"运行绩效指数", @"发展条件指数"];
    NSArray *rDatas = @[@[@"90.51", @"90.51", @"90.51", @"90.51", @"100.00"], @[@"90.51", @"90.51", @"90.51", @"90.51", @"100.00"], @[@"90.51", @"90.51", @"90.51", @"90.51", @"100.00"], @[@"90.51", @"90.51", @"90.51", @"90.51", @"100.00"], @[@"90.51", @"90.51", @"90.51", @"90.51", @"100.00"]];
    
    SheetView *sheet = [[SheetView alloc] initWithFrame:CGRectMake(0, 100, SCREEN_W, 300)];
    [sheet loadDatasLeftTitles:lTitles leftDatas:lDatas rightTitles:rTitles rightDatas:rDatas];
    [self.view addSubview:sheet];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
